<!DOCTYPE html>
<html>
<head>
    <title>鹿鹿泽30天15节课程统计</title>
    <link rel="stylesheet" href="../static/css/minghu.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
    <style>
        .table-lmt15 {
            width:100%;
        }
        .table-lmt15  {
            width: 100%;
            border-collapse: collapse;
        }
        /* th, td {
            border: 1px solid black;
        } */
        td:nth-child(2), th:nth-child(2) {
            width: 25px; /* 设定第二列宽度为200像素 */
        }
        .num-box{
            text-align: center;
            background-color:#3998b8;
            color:#ffffff;
            width:20px;
            border-radius: 4px;
        }
        .outer-box{
            font-size:12px;
            margin:6px;
        }
        .inner-box{
            background-color:#f7fafc;
            font-size: 12px;
            color:#265666;

            border-radius: 4px;
            text-align: left;
            padding:12px;
            margin-bottom: 22px;
            line-height: 28px;
        }

    </style>
</head>
<body style="background-color: rgb(254, 254, 255);">
    {% include 'show_ins_info.html' %}
    <hr>
    <h2 id="title" style="color:#2f7991;margin-bottom: 34px;">新人首单30天15节课程统计</h2>
    <div id="yearMonth" style="font-size:18px;margin-left:10px;"></div>
    
    <div id="clsMsg"></div>
    <div id="msg"></div>

    <script src="../static/js/common.js"></script>
    <script src="../static/js/clsMsgAlert.js"></script>
    <script src="../static/js/echarts.min.js"></script>
    
    <script>
        let insName;
        let insId;
        let insRole;
        let insList;
        
        document.addEventListener('DOMContentLoaded',function(){
            // loginCheck();           
            fetch('/get_ins_list', {
                method: 'GET',
                headers: {
                    'Content-Type': 'application/json'
                }
                })
                .then(response => response.json())
                .then(data => {
            //将data赋值给块变量cus_list，供后面的handleInput使用
                console.log('get ins list:',data);
                insList=data;
                // indexMsgAlertAll(data['ins_list'],'clsMsg','title');
                indexMsgAlertAll2(data['ins_list'],'clsMsg','title','msg');
                 })
                .catch(error => console.error('Error:', error));
            
            const insInfo=hideInsSelectBlockAndGetInsInfo();
            insId=insInfo.sessionInsId;
            insName=insInfo.sessionInsName;
            insRole=insInfo.sessionInsRole;
            // console.log(insName)
            //教练角色不允许进入该页面，返回Index
            if(insRole==='ins'){
                window.location.replace('./index');
            }

            selectToday('yearMonth','date');





        });

    </script>
  
</body>
</html>
